package net.corba.imp;

import java.io.Serializable;
import java.rmi.RemoteException;

import net.corba.ListPOA;

import org.omg.CORBA.Any;

public class List extends ListPOA {

	public Any list(String type, String user) {
		Any any = CorbaServer.orb.create_any();
		try {
			any.insert_Value((Serializable) server.List.list(type, user));
		} catch (RemoteException e) {
			e.printStackTrace();
		}
		return any;
	}

}
